{php include wl_template('common/header');}
<ul class="nav nav-tabs" role="tablist">
    <li role="presentation" class="active"><a href="#" aria-controls="pageset" role="tab" data-toggle="tab">装修设置</a></li>
</ul>
<div class="app-content">
    <div class="app-form">
        <form action="" method="post" class="form-horizontal form form-validate">
            <!---------------------------  页面设置内容  ----------------------------------->
        	<div class="form-group-title">页面设置</div>
            <div class="form-group">
                <div class="col-sm-2 control-label">平台首页</div>
                <div class="col-sm-9">
                    <select name="data[page_index]" class="form-control select2">
                        <option value="0">系统默认</option>
                        {loop $indexpages $k $val}
                            <option value="{$val['id']}" {if $val['id'] == $settings['page_index']}selected{/if}>{$val['name']}</option>
                        {/loop}
                    </select>
                </div>
            </div>
            {if agent_p('rush')}
                <div class="form-group">
                    <div class="col-sm-2 control-label">抢购首页</div>
                    <div class="col-sm-9">
                        <select name="data[page_rush]" class="form-control select2">
                            <option value="0">系统默认</option>
                            {loop $rushpages $k $val}
                                <option value="{$val['id']}" {if $val['id'] == $settings['page_rush']}selected{/if}>{$val['name']}</option>
                            {/loop}
                        </select>
                    </div>
                </div>
            {/if}
            {if agent_p('groupon')}
                <div class="form-group">
                    <div class="col-sm-2 control-label">团购首页</div>
                    <div class="col-sm-9">
                        <select name="data[page_groupon]" class="form-control select2">
                            <option value="0">系统默认</option>
                            {loop $grouponpages $k $val}
                            <option value="{$val['id']}" {if $val['id'] == $settings['page_groupon']}selected{/if}>{$val['name']}</option>
                            {/loop}
                        </select>
                    </div>
                </div>
            {/if}
            {if agent_p('wlcoupon')}
                <div class="form-group">
                    <div class="col-sm-2 control-label">卡券首页</div>
                    <div class="col-sm-9">
                        <select name="data[page_wlcoupon]" class="form-control select2">
                            <option value="0">系统默认</option>
                            {loop $wlcouponpages $k $val}
                                <option value="{$val['id']}" {if $val['id'] == $settings['page_wlcoupon']}selected{/if}>{$val['name']}</option>
                            {/loop}
                        </select>
                    </div>
                </div>
            {/if}
            {if agent_p('wlfightgroup')}
                <div class="form-group">
                    <div class="col-sm-2 control-label">拼团首页</div>
                    <div class="col-sm-9">
                        <select name="data[page_wlfightgroup]" class="form-control select2">
                            <option value="0">系统默认</option>
                            {loop $wlfightgrouppages $k $val}
                                <option value="{$val['id']}" {if $val['id'] == $settings['page_wlfightgroup']}selected{/if}>{$val['name']}</option>
                            {/loop}
                        </select>
                    </div>
                </div>
            {/if}
            {if p('bargain')}
                <div class="form-group">
                    <div class="col-sm-2 control-label">砍价首页</div>
                    <div class="col-sm-9">
                        <select name="data[page_bargain]" class="form-control select2">
                            <option value="0">系统默认</option>
                            {loop $bargainpages $k $val}
                            <option value="{$val['id']}" {if $val['id'] == $settings['page_bargain']}selected{/if}>{$val['name']}</option>
                            {/loop}
                        </select>
                    </div>
                </div>
            {/if}
            <div class="form-group">
                <div class="col-sm-2 control-label">好店首页</div>
                <div class="col-sm-9">
                    <select name="data[page_shop]" class="form-control select2">
                        <option value="0">系统默认</option>
                        {loop $shoppages $k $val}
                        <option value="{$val['id']}" {if $val['id'] == $settings['page_shop']}selected{/if}>{$val['name']}</option>
                        {/loop}
                    </select>
                </div>
            </div>
            {if agent_p('activity')}
                <div class="form-group">
                    <div class="col-sm-2 control-label">活动首页</div>
                    <div class="col-sm-9">
                        <select name="data[page_activity]" class="form-control select2">
                            <option value="0">系统默认</option>
                            {loop $activitypages $k $val}
                                <option value="{$val['id']}" {if $val['id'] == $settings['page_activity']}selected{/if}>{$val['name']}</option>
                            {/loop}
                        </select>
                    </div>
                </div>
            {/if}
            {if agent_p('pocket')}
            <div class="form-group">
                <div class="col-sm-2 control-label">同城首页</div>
                <div class="col-sm-9">
                    <select name="data[page_pocket]" class="form-control select2">
                        <option value="0">系统默认</option>
                        {loop $pocketpages $k $val}
                        <option value="{$val['id']}" {if $val['id'] == $settings['page_pocket']}selected{/if}>{$val['name']}</option>
                        {/loop}
                    </select>
                </div>
            </div>
            {/if}
            {if agent_p('recruit')}
                <div class="form-group">
                    <div class="col-sm-2 control-label">招聘首页</div>
                    <div class="col-sm-9">
                        <select name="data[page_recruit]" class="form-control select2">
                            <option value="0">系统默认</option>
                            {loop $recruitpages $k $val}
                                <option value="{$val['id']}" {if $val['id'] == $settings['page_recruit']}selected{/if}>{$val['name']}</option>
                            {/loop}
                        </select>
                    </div>
                </div>
            {/if}
            {if agent_p('dating')}
                <div class="form-group">
                    <div class="col-sm-2 control-label">相亲首页</div>
                    <div class="col-sm-9">
                        <select name="data[page_dating]" class="form-control select2">
                            <option value="0">系统默认</option>
                            {loop $datingpages $k $val}
                            <option value="{$val['id']}" {if $val['id'] == $settings['page_dating']}selected{/if}>{$val['name']}</option>
                            {/loop}
                        </select>
                    </div>
                </div>
            {/if}
            {if agent_p('housekeep')}
                <div class="form-group">
                    <div class="col-sm-2 control-label">家政首页</div>
                    <div class="col-sm-9">
                        <select name="data[page_housekeep]" class="form-control select2">
                            <option value="0">系统默认</option>
                            {loop $housekeeppages $k $val}
                                <option value="{$val['id']}" {if $val['id'] == $settings['page_housekeep']}selected{/if}>{$val['name']}</option>
                            {/loop}
                        </select>
                    </div>
                </div>
            {/if}
            <!--{if p('house')}-->
            <!--<div class="form-group">-->
                <!--<div class="col-sm-2 control-label">房产首页</div>-->
                <!--<div class="col-sm-9">-->
                    <!--<select name="data[page_house]" class="form-control select2">-->
                        <!--<option value="0">系统默认</option>-->
                        <!--{loop $housepages $k $val}-->
                        <!--<option value="{$val['id']}" {if $val['id'] == $settings['page_house']}selected{/if}>{$val['name']}</option>-->
                        <!--{/loop}-->
                    <!--</select>-->
                <!--</div>-->
            <!--</div>-->
            <!--{/if}-->
            <!---------------------------  菜单设置内容  ----------------------------------->
        	<div class="form-group-title">菜单设置</div>
            <div class="form-group">
                <div class="col-sm-2 control-label">平台菜单</div>
                <div class="col-sm-9">
                    <select name="data[menu_index]" class="form-control select2">
                        <option value="0">系统默认</option>
                        {loop $menus $mk $mval}
                        <option value="{$mval['id']}" {if $mval['id'] == $settings['menu_index']}selected{/if}>{$mval['name']}</option>
                        {/loop}
                    </select>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">好店菜单</div>
                <div class="col-sm-9">
                    <select name="data[menu_storepage]" class="form-control select2">
                        <option value="0">系统默认</option>
                        {loop $menus $mk $mval}
                        <option value="{$mval['id']}" {if $mval['id'] == $settings['menu_storepage']}selected{/if}>{$mval['name']}</option>
                        {/loop}
                    </select>
                </div>
            </div>
            {if agent_p('halfcard')}
            <div class="form-group">
                <div class="col-sm-2 control-label">一卡通菜单</div>
                <div class="col-sm-9">
                    <select name="data[menu_half]" class="form-control select2">
                        <option value="0">系统默认</option>
                        {loop $menus $mk $mval}
                        <option value="{$mval['id']}" {if $mval['id'] == $settings['menu_half']}selected{/if}>{$mval['name']}</option>
                        {/loop}
                    </select>
                </div>
            </div>
            {/if}
            {if agent_p('rush')}
            <div class="form-group">
                <div class="col-sm-2 control-label">抢购菜单</div>
                <div class="col-sm-9">
                    <select name="data[menu_rush]" class="form-control select2">
                        <option value="0">系统默认</option>
                        {loop $menus $mk $mval}
                        <option value="{$mval['id']}" {if $mval['id'] == $settings['menu_rush']}selected{/if}>{$mval['name']}</option>
                        {/loop}
                    </select>
                </div>
            </div>
            {/if}
            {if agent_p('groupon')}
            <div class="form-group">
                <div class="col-sm-2 control-label">团购菜单</div>
                <div class="col-sm-9">
                    <select name="data[menu_groupon]" class="form-control select2">
                        <option value="0">系统默认</option>
                        {loop $menus $mk $mval}
                        <option value="{$mval['id']}" {if $mval['id'] == $settings['menu_groupon']}selected{/if}>{$mval['name']}</option>
                        {/loop}
                    </select>
                </div>
            </div>
            {/if}
            {if agent_p('wlcoupon')}
            <div class="form-group">
                <div class="col-sm-2 control-label">卡券菜单</div>
                <div class="col-sm-9">
                    <select name="data[menu_wlcoupon]" class="form-control select2">
                        <option value="0">系统默认</option>
                        {loop $menus $mk $mval}
                        <option value="{$mval['id']}" {if $mval['id'] == $settings['menu_wlcoupon']}selected{/if}>{$mval['name']}</option>
                        {/loop}
                    </select>
                </div>
            </div>
            {/if}
            {if agent_p('wlfightgroup')}
            <div class="form-group">
                <div class="col-sm-2 control-label">拼团菜单</div>
                <div class="col-sm-9">
                    <select name="data[menu_wlfightgroup]" class="form-control select2">
                        <option value="0">系统默认</option>
                        {loop $menus $mk $mval}
                        <option value="{$mval['id']}" {if $mval['id'] == $settings['menu_wlfightgroup']}selected{/if}>{$mval['name']}</option>
                        {/loop}
                    </select>
                </div>
            </div>
            {/if}
            {if agent_p('bargain')}
            <div class="form-group">
                <div class="col-sm-2 control-label">砍价菜单</div>
                <div class="col-sm-9">
                    <select name="data[menu_bargain]" class="form-control select2">
                        <option value="0">系统默认</option>
                        {loop $menus $mk $mval}
                        <option value="{$mval['id']}" {if $mval['id'] == $settings['menu_bargain']}selected{/if}>{$mval['name']}</option>
                        {/loop}
                    </select>
                </div>
            </div>
            {/if}
            {if agent_p('pocket')}
            <div class="form-group">
                <div class="col-sm-2 control-label">掌上信息菜单</div>
                <div class="col-sm-9">
                    <select name="data[menu_pocket]" class="form-control select2">
                        <option value="0">系统默认</option>
                        {loop $menus $mk $mval}
                        <option value="{$mval['id']}" {if $mval['id'] == $settings['menu_pocket']}selected{/if}>{$mval['name']}</option>
                        {/loop}
                    </select>
                </div>
            </div>
            {/if}
            {if agent_p('consumption')}
            <div class="form-group">
                <div class="col-sm-2 control-label">积分商城菜单</div>
                <div class="col-sm-9">
                    <select name="data[menu_consumption]" class="form-control select2">
                        <option value="0">系统默认</option>
                        {loop $menus $mk $mval}
                        <option value="{$mval['id']}" {if $mval['id'] == $settings['menu_consumption']}selected{/if}>{$mval['name']}</option>
                        {/loop}
                    </select>
                </div>
            </div>
            {/if}
            {if agent_p('wlsign')}
            <div class="form-group">
                <div class="col-sm-2 control-label">积分签到菜单</div>
                <div class="col-sm-9">
                    <select name="data[menu_wlsign]" class="form-control select2">
                        <option value="0">系统默认</option>
                        {loop $menus $mk $mval}
                        <option value="{$mval['id']}" {if $mval['id'] == $settings['menu_wlsign']}selected{/if}>{$mval['name']}</option>
                        {/loop}
                    </select>
                </div>
            </div>
            {/if}
            {if agent_p('headline')}
            <div class="form-group">
                <div class="col-sm-2 control-label">头条列表菜单</div>
                <div class="col-sm-9">
                    <select name="data[menu_headline]" class="form-control select2">
                        <option value="0">系统默认</option>
                        {loop $menus $mk $mval}
                            <option value="{$mval['id']}" {if $mval['id'] == $settings['menu_headline']}selected{/if}>{$mval['name']}</option>
                        {/loop}
                    </select>
                </div>
            </div>
            {/if}
            {if agent_p('citycard')}
                <div class="form-group">
                    <div class="col-sm-2 control-label">名片首页菜单</div>
                    <div class="col-sm-9">
                        <select name="data[menu_card]" class="form-control select2">
                            <option value="0">系统默认</option>
                            {loop $menus $mk $mval}
                                <option value="{$mval['id']}" {if $mval['id'] == $settings['menu_card']}selected{/if}>{$mval['name']}</option>
                            {/loop}
                        </select>
                    </div>
                </div>
            {/if}
            {if agent_p('activity')}
            <div class="form-group">
                <div class="col-sm-2 control-label">活动首页菜单</div>
                <div class="col-sm-9">
                    <select name="data[menu_activity]" class="form-control select2">
                        <option value="0">系统默认</option>
                        {loop $menus $mk $mval}
                            <option value="{$mval['id']}" {if $mval['id'] == $settings['menu_activity']}selected{/if}>{$mval['name']}</option>
                        {/loop}
                    </select>
                </div>
            </div>
            {/if}
            {if agent_p('recruit')}
                <div class="form-group">
                    <div class="col-sm-2 control-label">招聘首页菜单</div>
                    <div class="col-sm-9">
                        <select name="data[menu_recruit]" class="form-control select2">
                            <option value="0">系统默认</option>
                            {loop $menus $mk $mval}
                                <option value="{$mval['id']}" {if $mval['id'] == $settings['menu_recruit']}selected{/if}>{$mval['name']}</option>
                            {/loop}
                        </select>
                    </div>
                </div>
            {/if}
            {if agent_p('dating')}
                <div class="form-group">
                    <div class="col-sm-2 control-label">相亲首页菜单</div>
                    <div class="col-sm-9">
                        <select name="data[menu_dating]" class="form-control select2">
                            <option value="0">系统默认</option>
                            {loop $menus $mk $mval}
                            <option value="{$mval['id']}" {if $mval['id'] == $settings['menu_dating']}selected{/if}>{$mval['name']}</option>
                            {/loop}
                        </select>
                    </div>
                </div>
            {/if}
            {if agent_p('housekeep')}
                <div class="form-group">
                    <div class="col-sm-2 control-label">家政首页菜单</div>
                    <div class="col-sm-9">
                        <select name="data[menu_housekeep]" class="form-control select2">
                            <option value="0">系统默认</option>
                            {loop $menus $mk $mval}
                            <option value="{$mval['id']}" {if $mval['id'] == $settings['menu_housekeep']}selected{/if}>{$mval['name']}</option>
                            {/loop}
                        </select>
                    </div>
                </div>
            {/if}
            {if agent_p('yellowpage')}
            <div class="form-group">
                <div class="col-sm-2 control-label">黄页114菜单</div>
                <div class="col-sm-9">
                    <select name="data[menu_yellow]" class="form-control select2">
                        <option value="0">系统默认</option>
                        {loop $menus $mk $mval}
                        <option value="{$mval['id']}" {if $mval['id'] == $settings['menu_yellow']}selected{/if}>{$mval['name']}</option>
                        {/loop}
                    </select>
                </div>
            </div>
            {/if}
            {if agent_p('hotel')}
            <div class="form-group">
                <div class="col-sm-2 control-label">酒店组件菜单</div>
                <div class="col-sm-9">
                    <select name="data[menu_hotel_index]" class="form-control select2">
                        <option value="0">系统默认</option>
                        {loop $menus $mk $mval}
                        <option value="{$mval['id']}" {if $mval['id'] == $settings['menu_hotel_index']}selected{/if}>{$mval['name']}</option>
                        {/loop}
                    </select>
                </div>
            </div>
            {/if}
            {if agent_p('house')}
            <div class="form-group">
                <div class="col-sm-2 control-label">房产信息菜单</div>
                <div class="col-sm-9">
                    <select name="data[menu_house_index]" class="form-control select2">
                        <option value="0">系统默认</option>
                        {loop $menus $mk $mval}
                        <option value="{$mval['id']}" {if $mval['id'] == $settings['menu_house_index']}selected{/if}>{$mval['name']}</option>
                        {/loop}
                    </select>
                </div>
            </div>
            {/if}
            <!---------------------------  广告设置内容  ----------------------------------->
        	<div class="form-group-title">广告设置</div>
            <div class="form-group">
                <div class="col-sm-2 control-label">平台首页广告</div>
                <div class="col-sm-9">
                    <select name="data[adv_index]" class="form-control select2">
                        <option value="0">关闭广告</option>
                        {loop $advs $adk $adval}
                            <option value="{$adval['id']}" {if $adval['id'] == $settings['adv_index']}selected{/if}>{$adval['name']}</option>
                        {/loop}
                    </select>
                    <span class="help-block"></span>
                </div>
            </div>
            {if agent_p('rush')}
                <div class="form-group">
                    <div class="col-sm-2 control-label">抢购首页广告</div>
                    <div class="col-sm-9">
                        <select name="data[adv_rush]" class="form-control select2">
                            <option value="0">关闭广告</option>
                            {loop $advs $adk $adval}
                            <option value="{$adval['id']}" {if $adval['id'] == $settings['adv_rush']}selected{/if}>{$adval['name']}</option>
                            {/loop}
                        </select>
                        <span class="help-block"></span>
                    </div>
                </div>
            {/if}
            {if agent_p('groupon')}
                <div class="form-group">
                    <div class="col-sm-2 control-label">团购首页广告</div>
                    <div class="col-sm-9">
                        <select name="data[adv_groupon]" class="form-control select2">
                            <option value="0">关闭广告</option>
                            {loop $advs $adk $adval}
                                <option value="{$adval['id']}" {if $adval['id'] == $settings['adv_groupon']}selected{/if}>{$adval['name']}</option>
                            {/loop}
                        </select>
                        <span class="help-block"></span>
                    </div>
                </div>
            {/if}
            {if agent_p('wlcoupon')}
                <div class="form-group">
                    <div class="col-sm-2 control-label">卡券首页广告</div>
                    <div class="col-sm-9">
                        <select name="data[adv_wlcoupon]" class="form-control select2">
                            <option value="0">关闭广告</option>
                            {loop $advs $adk $adval}
                            <option value="{$adval['id']}" {if $adval['id'] == $settings['adv_wlcoupon']}selected{/if}>{$adval['name']}</option>
                            {/loop}
                        </select>
                        <span class="help-block"></span>
                    </div>
                </div>
            {/if}
            {if agent_p('wlfightgroup')}
                <div class="form-group">
                    <div class="col-sm-2 control-label">拼团首页广告</div>
                    <div class="col-sm-9">
                        <select name="data[adv_wlfightgroup]" class="form-control select2">
                            <option value="0">关闭广告</option>
                            {loop $advs $adk $adval}
                                <option value="{$adval['id']}" {if $adval['id'] == $settings['adv_wlfightgroup']}selected{/if}>{$adval['name']}</option>
                            {/loop}
                        </select>
                        <span class="help-block"></span>
                    </div>
                </div>
            {/if}
            {if agent_p('bargain')}
                <div class="form-group">
                    <div class="col-sm-2 control-label">砍价首页广告</div>
                    <div class="col-sm-9">
                        <select name="data[adv_bargain]" class="form-control select2">
                            <option value="0">关闭广告</option>
                            {loop $advs $adk $adval}
                                <option value="{$adval['id']}" {if $adval['id'] == $settings['adv_bargain']}selected{/if}>{$adval['name']}</option>
                            {/loop}
                        </select>
                        <span class="help-block"></span>
                    </div>
                </div>
            {/if}
            {if agent_p('activity')}
                <div class="form-group">
                    <div class="col-sm-2 control-label">活动首页广告</div>
                    <div class="col-sm-9">
                        <select name="data[adv_activity]" class="form-control select2">
                            <option value="0">关闭广告</option>
                            {loop $advs $adk $adval}
                                <option value="{$adval['id']}" {if $adval['id'] == $settings['adv_activity']}selected{/if}>{$adval['name']}</option>
                            {/loop}
                        </select>
                        <span class="help-block"></span>
                    </div>
                </div>
            {/if}
            {if agent_p('pocket')}
            <div class="form-group">
                <div class="col-sm-2 control-label">同城首页广告</div>
                <div class="col-sm-9">
                    <select name="data[adv_pocket]" class="form-control select2">
                        <option value="0">关闭广告</option>
                        {loop $advs $adk $adval}
                        <option value="{$adval['id']}" {if $adval['id'] == $settings['adv_pocket']}selected{/if}>{$adval['name']}</option>
                        {/loop}
                    </select>
                    <span class="help-block"></span>
                </div>
            </div>
            {/if}
            {if agent_p('recruit')}
                <div class="form-group">
                    <div class="col-sm-2 control-label">招聘首页广告</div>
                    <div class="col-sm-9">
                        <select name="data[adv_recruit]" class="form-control select2">
                            <option value="0">关闭广告</option>
                            {loop $advs $adk $adval}
                            <option value="{$adval['id']}" {if $adval['id'] == $settings['adv_recruit']}selected{/if}>{$adval['name']}</option>
                            {/loop}
                        </select>
                        <span class="help-block"></span>
                    </div>
                </div>
            {/if}
            {if agent_p('dating')}
                <div class="form-group">
                    <div class="col-sm-2 control-label">相亲首页广告</div>
                    <div class="col-sm-9">
                        <select name="data[adv_dating]" class="form-control select2">
                            <option value="0">关闭广告</option>
                            {loop $advs $adk $adval}
                            <option value="{$adval['id']}" {if $adval['id'] == $settings['adv_dating']}selected{/if}>{$adval['name']}</option>
                            {/loop}
                        </select>
                        <span class="help-block"></span>
                    </div>
                </div>
            {/if}
            {if agent_p('housekeep')}
                <div class="form-group">
                    <div class="col-sm-2 control-label">家政首页广告</div>
                    <div class="col-sm-9">
                        <select name="data[adv_housekeep]" class="form-control select2">
                            <option value="0">关闭广告</option>
                            {loop $advs $adk $adval}
                                <option value="{$adval['id']}" {if $adval['id'] == $settings['adv_housekeep']}selected{/if}>{$adval['name']}</option>
                            {/loop}
                        </select>
                        <span class="help-block"></span>
                    </div>
                </div>
            {/if}
            <!---------------------------  提交按钮  ----------------------------------->
            <div class="form-group">
                <label class="col-sm-2 control-label"></label>
                <div class="col-sm-9">
                    <input type="submit" name="submit" value="提交" class="btn btn-primary min-width" />
                    <input type="hidden" name="token" value="{$_W['token']}" />
                </div>
            </div>
        </form>
    </div>
</div>
{php include wl_template('common/footer');}